<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      >
    <h:head>
       <title>Menu</title>
       <h:outputStylesheet library="css" name="main.css" />
    </h:head>
    <h:body>
    
    	<!-- homepage only visible to logged-in users -->
   		<h:panelGroup rendered="#{credentials.isLoggedIn()}">
   		
			<ui:insert name="header" >
		  		<ui:include src="/templates/header.xhtml" />
			</ui:insert>
		    
			<h2>#{msgs.welcome}</h2>
			<p>
				Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
				Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
				 dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat 
				 non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
			</p>
		</h:panelGroup>
		
		<!-- Not logged-in viewers will be able to view this section -->
		<h:panelGroup rendered="#{!credentials.isLoggedIn()}">
			<ui:insert name="notLogIn" >
		  		<ui:include src="/templates/notLogIn.xhtml" />
			</ui:insert>
		</h:panelGroup>
		
   </h:body>
</html>
